﻿namespace D.Domain.SystemDomain.SysResourceDomain.Entities
{
    /// <summary>
    /// 实体资源
    /// </summary>
    public class SysModelAccessEntity : BaseEntity
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string? Name { get; init; }

        /// <summary>
        /// 标识键
        /// </summary>
        public string? Key { get; init; }

        /// <summary>
        /// 是否可创建
        /// </summary>
        public bool CanCreate { get; init; }

        /// <summary>
        /// 是否可删除
        /// </summary>
        public bool CanDelete { get; init; }

        /// <summary>
        /// 每个字段是否可修改
        /// </summary>
        public bool MemberAccess { get; init; }
    }
}
